#include "mainwindow.h"
#include <QDebug>
#include <QStackedWidget>
#include "InterfaceManager.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    // 设置堆叠控件为中央部件,仅仅在幕布类(即当前MainWindow)要执行
    setCentralWidget(InterfaceManager::instance()->m_stackedWidget);
}

MainWindow::~MainWindow()
{
    delete ui;
}
